package cn.ultrarisk.sprinx.mybatis.entity;

import cn.ultrarisk.sprinx.mybatis.annotation.Table;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * User
 *
 * @author sevendlong(lin23871@163.com)
 * @date 2014/10/9
 * @since V1.0
 */
@Table(table = Company.TABLE, idColumn = Company.ID, autoIncrement = false)
public class Company {
    public static final String TABLE = "company";

    public static final String ID = "id";
    public static final String NAME = "name";
    public static final String AREA = "area";
    public static final String REMARK = "remark";

    public static final Map<String, String> COLUMN_PROPERTY_MAP = new LinkedHashMap<String, String>();

    static {
        COLUMN_PROPERTY_MAP.put(ID, "id");
        COLUMN_PROPERTY_MAP.put(NAME, "name");
        COLUMN_PROPERTY_MAP.put(AREA, "area");
        COLUMN_PROPERTY_MAP.put(REMARK, "remark");
    }

    private Integer id;
    private String name;
    private String area;
    private String remark;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
